import numpy as np

if __name__ == '__main__':
    rand = np.random.rand(2, 3)
    print rand
    print rand.transpose()
    print rand.transpose(1,0)

    random_rand = np.random.rand(2, 3, 4)
    print random_rand
    print random_rand.transpose(1,0,2)